<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>按钮倒计时</title>
</head>
<body>
<button disabled>你要看内容的哦[10]</button>
<script>
    let i = 10
    const button = document.querySelector("button")
    let n = setInterval(function () {
        i--
        button.innerHTML = `你要看内容的哦[${i}]`
        if(i===0){
            clearInterval(n)
            button.disabled=false
            button.innerHTML="可以点击啦"
        }
    },1000)
</script>
</body>
</html>